<div class="layui-form-item ">
    <label class="layui-form-label">{$laber}：</label>
    <div class="layui-input-block" style="max-width:85%;">
        <textarea name="{$name}"  placeholder="{$placeholder}"  id="{$name}"  >{$value}</textarea>
    </div>
</div>

<!-- 配置文件 -->
<script type="text/javascript" src="/plugs/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="/plugs/ueditor/ueditor.all.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
    var min={$min};
    if (min==0){
        var ue = UE.getEditor("{$name}", {
            autoHeightEnabled:false,
            initialFrameHeight:{$ud_height},
            zIndex : 0,
        });
    } else {
        var ue = UE.getEditor("{$name}", {
            autoHeightEnabled:false,
            initialFrameHeight:{$ud_height},
            zIndex : 0,
            toolbars: [[
                'fullscreen', 'source', '|', 'undo', 'redo', '|',
                'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
                'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
                'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|', 'indent', '|',
                'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|',
                'link', 'unlink', 'anchor','|', 'simpleupload', 'emotion', 'scrawl', 'insertvideo', 'music', 'attachment', 'insertcode', '|', 'horizontal', '|', 'preview'
            ]]
        });
    }

</script>